package cn.juni.service;

import cn.juni.pojo.Role;
import cn.juni.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * @author Juni
 * @date 2021/2/25
 */
public interface IUserInfoService extends UserDetailsService {

    public List<UserInfo> findAll(Integer pageNum,Integer pageSize);

    public int insertUserInfo(UserInfo userInfo);

    public UserInfo findUserInfoById(String id);

    public List<Role> findOtherRole(String uid);

    public void insertUserRole(String userId, String[] ids);
}
